/**************************************************************************************************
**                                                                                               **
**  文件名称:  dal_flashdrv.h                                                                    **
**  版权所有:  CopyRight @ Xiamen Yaxon NetWork CO.LTD. 2017                                     **
**  文件描述:  FLASH存储器读写的驱动管理                                                         **
**  ===========================================================================================  **
**  创建信息:  | 2017-3-20 | LEON | 创建本模块                                                   **
**  ===========================================================================================  **
**  修改信息:  单击此处添加....                                                                  **
**************************************************************************************************/
#ifndef DAL_FLASHDRV_H
#define DAL_FLASHDRV_H

void DAL_Flash_Unlock(void);
void DAL_Flash_Lock(void);
BOOLEAN DAL_Flash_EraseOnePage(INT8U page);
BOOLEAN DAL_Flash_EraseSomePages(INT8U bpage, INT8U epage);
BOOLEAN DAL_Flash_EraseAllPage(void);
BOOLEAN DAL_Flash_WriteHalfWord(INT32U addr, INT16U data);
BOOLEAN DAL_Flash_WriteWord(INT32U addr, INT32U data);
BOOLEAN DAL_Flash_WriteData(INT32U addr, INT8U *data, INT32U dlen);
INT32U DAL_Flash_ReadData(INT32U addr, INT8U *dbuf, INT32U dlen);
INT32U DAL_Flash_GetAddrByPage(INT8U page, BOOLEAN start);

#endif

